import BasicLayout from '@/layouts/basic-layout';

const meta = {
  auth: true
};

export default {
  path: '/finance',
  name: 'finance',
  redirect: {
    name: 'finance'
  },
  meta,
  component: BasicLayout,
  /* 三级菜单 */
  children: [
    /*
      /finance/purchasePriceManage  ---  对应二级菜单 进价管理
      /finance/priceManage           ---  对应二级菜单 售价管理
      /finance/pricingPrinciple     ---  对应二级菜单 定价原则
      /finance/marketResearch     ---  对应二级菜单 市场调研
    */
    /* ------------- 进价管理 ---------------- */
    /* 1、供货信息查询 */
    {
      path: '/finance/purchasePriceManage/supplyinfoManageList',
      name: 'supplyinfoList',
      meta: {
        auth: true, // 是否校验权限
        title: '供货信息查询'
      },
      component: () => import('@/pages/finance/purchasePriceManage/supplyInfoQuery')
    },
    /* 3、新增多供进价 */
    {
      path: '/finance/purchasePriceManage/chageFromManageMuchSupply',
      name: 'manageMuchSupply',
      meta: {
        auth: true, // 是否校验权限
        title: '添加多供进价'
      },
      component: () => import('@/pages/finance/purchasePriceManage/addMoreSupply/singleUnit')
    },
    /* 4、新增多供进价-多计量 */
    {
      path: '/finance/purchasePriceManage/chageFromManageMuchSupplySteel',
      name: 'manageMuchSupplySteel',
      meta: {
        auth: true, // 是否校验权限
        title: '添加多供进价'
      },
      component: () => import('@/pages/finance/purchasePriceManage/addMoreSupply/multipleUnit')
    },
    /* 5、主供及到货周期管理 */
    {
      path: '/finance/purchasePriceManage/maintainList',
      name: 'maintainList',
      meta: {
        auth: true, // 是否校验权限
        title: '维护供应商主供及到货周期设置'
      },
      component: () => import('@/pages/commodity/supplyinfoManage/maintain/maintainList')
    },
    /* 主供及到货周期管理 - 批量修改主供信息 */
    {
      path: '/finance/purchasePriceManage/maintainList/batchModifyMainSupply',
      name: 'batchModifyMainSupply',
      meta: {
        auth: true, // 是否校验权限
        title: '批量修改主供信息'
      },
      component: () => import('@/pages/finance/purchasePriceManage/mainSupplyManage/batchModify')
    },
    {
      path: '/finance/purchasePriceManage/maintainList/batchModifyArrivalTime',
      name: 'batchModifyArrivalTime',
      meta: {
        auth: true, // 是否校验权限
        title: '批量修改到货周期修改'
      },
      component: () => import('@/pages/finance/purchasePriceManage/batchModifyArrivalTime')
    },
    {
      path: '/finance/purchasePriceManage/maintainList/batchModifyArrivalTimeView',
      name: 'batchModifyArrivalTimeView',
      meta: {
        auth: true, // 是否校验权限
        title: '批量修改到货周期查看'
      },
      component: () => import('@/pages/finance/purchasePriceManage/batchModifyArrivalTime/view')
    },
    /* 6、删除供货信息 */
    {
      path: '/finance/purchasePriceManage/delsupplyList',
      name: 'delsupplyInfo',
      meta: {
        auth: true, // 是否校验权限
        title: '删除供货信息'
      },
      component: () => import('@/pages/commodity/supplyinfoManage/delsupply/delsupplyList')
    },
    {
      path: '/finance/purchasePriceManage/batchStopSupply',
      name: 'batchStopSupply',
      meta: {
        auth: true, // 是否校验权限
        title: '批量停供'
      },
      component: () => import('@/pages/finance/purchasePriceManage/batchStopSupply/index')
    },
    {
      path: '/finance/purchasePriceManage/batchRestoreSupply',
      name: 'batchRestoreSupply',
      meta: {
        auth: true, // 是否校验权限
        title: '批量恢复供货'
      },
      component: () => import('@/pages/finance/purchasePriceManage/batchRestoreSupply/index')
    },
    /* 调价通知单-列表 */
    {
      path: '/finance/purchasePriceManage/modifyManageList',
      name: 'modifyManageList',
      meta: {
        auth: true, // 是否校验权限
        title: '调价通知单-列表'
      },
      component: () => import('@/pages/finance/purchasePriceManage/priceAdjustmentNotice')
    },
    {
      path: '/finance/purchasePriceManage/modifyManageView',
      name: 'modifyManageView',
      meta: {
        auth: true, // 是否校验权限
        title: '调价通知单-处理'
      },
      component: () => import('@/pages/finance/purchasePriceManage/priceAdjustmentNotice/adjustAction')
    },

    /* 调价通知单新增 */
    {
      path: '/finance/modifyManage/modifyManageAdd',
      name: 'modifyManageAdd',
      meta: {
        auth: true, // 是否校验权限
        title: '调价通知单-新增'
      },
      component: () => import('@/pages/finance/purchasePriceManage/priceAdjustmentNotice/add')
    },

    /* 7、修改参照城市 */
    {
      path: '/finance/purchasePriceManage/chageFromManageTemplateCity',
      name: 'templateCityEdit',
      meta: {
        auth: true, // 是否校验权限
        title: '修改参照城市信息'
      },
      component: () => import('@/pages/commodity/commodityManage/chageFromManage/chageFromManageTemplateCity')
    },
    /* 8、修改参照城市-多计量 */
    {
      path: '/finance/purchasePriceManage/chageFromManageTemplateCitySteel',
      name: 'templateCityEditSteel',
      meta: {
        auth: true, // 是否校验权限
        title: '修改参照城市信息-多计量'
      },
      component: () => import('@/pages/commodity/commodityManage/chageFromManage/chageFromManageTemplateCitySteel')
    },
    /* 9、修改进价 */
    {
      path: '/finance/purchasePriceManage/chageFromManageenterPrice',
      name: 'enterPriceEdit',
      meta: {
        auth: true, // 是否校验权限
        title: '修改进价信息'
      },
      component: () => import('@/pages/commodity/commodityManage/chageFromManage/chageFromManageenterPrice')
    },
    /* 10、修改进价-多计量 */
    {
      path: '/finance/purchasePriceManage/chageFromManageenterPriceSteel',
      name: 'enterPriceSteelEdit',
      meta: {
        auth: true, // 是否校验权限
        title: '修改进价信息-钢材'
      },
      component: () => import('@/pages/commodity/commodityManage/chageFromManage/chageFromManageenterPriceSteel')
    },

    {
      path: '/finance/purchasePriceManage/batchModifyPurchaseList',
      name: 'batchModifyPurchaseList',
      meta: {
        auth: true,
        title: '批量修改进价'
      },
      component: () => import('@/pages/finance/purchasePriceManage/batchModifyPurchase')
    },
    {
      path: '/finance/purchasePriceManage/batchModifyPurchaseView',
      name: 'batchModifyPurchaseView',
      meta: {
        auth: true,
        title: '批量修改进价查看'
      },
      component: () => import('@/pages/finance/purchasePriceManage/batchModifyPurchase/view')
    },
    {
      path: '/finance/purchasePriceManage/batchModifyPurchaseEdit',
      name: 'batchModifyPurchaseEdit',
      meta: {
        auth: true,
        title: '批量修改进价修改'
      },
      component: () => import('@/pages/finance/purchasePriceManage/batchModifyPurchase/edit')
    },

    /* 11、修改售价 */
    {
      path: '/finance/priceManage/chageFromManageSellPrice',
      name: 'editSalePriceList',
      meta: {
        auth: true, // 是否校验权限
        title: '修改售价'
      },
      component: () => import('@/pages/finance/salePriceManage/editSalePrice')
    },
    {
      path: '/finance/priceManage/editSalePrice/recordEdit',
      name: 'editSalePriceRecordEdit',
      meta: {
        auth: true, // 是否校验权限
        title: '修改售价-单据修改'
      },
      component: () => import('@/pages/finance/salePriceManage/editSalePrice/recordEdit')
    },
    {
      path: '/finance/priceManage/editSalePrice/recordView',
      name: 'editSalePriceRecordView',
      meta: {
        auth: true, // 是否校验权限
        title: '修改售价-单据查看'
      },
      component: () => import('@/pages/finance/salePriceManage/editSalePrice/recordView')
    },
    {
      path: '/finance/priceManage/changePriceRecordQuery',
      name: 'changePriceRecordQuery',
      meta: {
        auth: true, // 是否校验权限
        title: '售价变价记录'
      },
      component: () => import('@/pages/finance/salePriceManage/changePriceRecordQuery')
    },
    /* ------------- 定价原则 ---------------- */
    /* 13、售价定价原则 */
    {
      path: '/finance/pricingPrinciple/sellingPriceList',
      name: 'sellingPriceList',
      meta: {
        auth: true, // 是否校验权限
        title: '售价定价原则'
      },
      component: () => import('@/pages/finance/pricingPrinciple/sellingPrice/sellingPriceList')
    },
    /* 14、售价定价原则-待启用 */
    {
      path: '/finance/pricingPrinciple/sellingPriceWait',
      name: 'sellingPriceWait',
      meta: {
        auth: true, // 是否校验权限
        title: '待启用售价定价原则'
      },
      component: () => import('@/pages/finance/pricingPrinciple/sellingPrice/sellingPriceWait')
    },
    /* 15、售价定价原则-启用 */
    {
      path: '/finance/pricingPrinciple/sellingPriceStartuse',
      name: 'sellingPriceStartuse',
      meta: {
        auth: true, // 是否校验权限
        title: '售价定价原则-启用'
      },
      component: () => import('@/pages/finance/pricingPrinciple/sellingPrice/sellingPriceStartuse')
    },
    /* 15、售价定价原则-修改 */
    {
      path: '/finance/pricingPrinciple/sellingPriceEdit',
      name: 'sellingPricePricingPrincipleEdit',
      meta: {
        auth: true, // 是否校验权限
        title: '修改售价定价原则'
      },
      component: () => import('@/pages/finance/pricingPrinciple/sellingPrice/sellingPriceEdit')
    },

    /* ------------- 市场调研 ---------------- */
    /* 16、价格调研 */
    {
      path: '/finance/marketResearch/sellingPriceSurveyList',
      name: 'sellingPriceSurveyList',
      meta: {
        auth: true, // 是否校验权限
        title: '价格调研'
      },
      component: () => import('@/pages/finance/survey/sellingPriceSurvey/sellingPriceSurveyList')
    },
    /* 16、新增售价市场调研 */
    {
      path: '/finance/survey/sellingPriceSurvey/sellingPriceSurveyAdd',
      name: 'sellingPriceSurveyAdd',
      meta: {
        auth: true, // 是否校验权限
        title: '新增售价市场调研'
      },
      component: () => import('@/pages/finance/survey/sellingPriceSurvey/sellingPriceSurveyAdd')
    },
    {
      path: '/finance/marketResearch/sellingPriceSurveyView',
      name: 'sellingPriceSurveyView',
      meta: {
        auth: true, // 是否校验权限
        title: '价格调研'
      },
      component: () => import('@/pages/finance/survey/sellingPriceSurvey/sellingPriceSurveyView')
    },
    //
    {
      path: '/finance/pricingPrinciple/sellingPrice/sellingPriceNewAdd',
      name: 'sellingPriceNewAdd',
      meta: {
        auth: true, // 是否校验权限
        title: '售价定价原则-待启用'
      },
      component: () => import('@/pages/finance/pricingPrinciple/sellingPrice/sellingPriceNewAdd')
    },
    {
      path: '/finance/pricingPrinciple/sellingPrice/sellingPriceNewEdit',
      name: 'sellingPriceNewEdit',
      meta: {
        auth: true, // 是否校验权限
        title: '售价定价原则-待启用'
      },
      component: () => import('@/pages/finance/pricingPrinciple/sellingPrice/sellingPriceNewEdit')
    },
    {
      path: '/finance/pricingPrinciple/sellingPrice/sellingPriceview',
      name: 'sellingPriceview',
      meta: {
        auth: true, // 是否校验权限
        title: '售价定价原则-待启用'
      },
      component: () => import('@/pages/finance/pricingPrinciple/sellingPrice/sellingPriceview')
    },
    {
      path: '/finance/purchasePriceManage/changePurchaseRecordQuery',
      name: 'changePurchaseRecordQuery',
      meta: {
        auth: true, // 是否校验权限
        title: '进价变价记录'
      },
      component: () => import('@/pages/finance/purchasePriceManage/changePurchaseRecord')
    },
    {
      path: '/finance/priceManage/distributionPriceChangeRecord',
      name: 'distributionPriceChangeRecord',
      meta: {
        auth: true, // 是否校验权限
        title: '分销价变价记录'
      },
      component: () => import('@/pages/finance/salePriceManage/distributionPriceChangeRecord')
    },

    // 原材料管理
    {
      path: '/finance/rawMaterialManage/rawMaterial',
      name: 'rawMaterialManage',
      meta: {
        auth: true, // 是否校验权限
        title: '原材料管理'
      },
      component: () => import('@/pages/finance/rawMaterialManage/rawMaterial')
    },
    {
      path: '/finance/rawMaterialManage/rawMaterialEdit',
      name: 'rawMaterialEdit',
      meta: {
        auth: true, // 是否校验权限
        title: '原材料编辑'
      },
      component: () => import('@/pages/finance/rawMaterialManage/rawMaterial/edit')
    },
    {
      path: '/finance/rawMaterialManage/rawMaterialChart',
      name: 'rawMaterialChart',
      meta: {
        auth: true, // 是否校验权限
        title: '原材料价格走势'
      },
      component: () => import('@/pages/finance/rawMaterialManage/rawMaterial/priceChart')
    },
    {
      path: '/finance/rawMaterialManage/toDoList',
      name: 'rawMaterialToDoList',
      meta: {
        auth: true, // 是否校验权限
        title: '原材料待办列表'
      },
      component: () => import('@/pages/finance/rawMaterialManage/toDoList')
    },
    // 价格管理周期
    {
      path: '/finance/priceCycleManage/priceCycle',
      name: 'priceCycleManageList',
      meta: {
        auth: true, // 是否校验权限
        title: '价格管理周期数据源'
      },
      component: () => import('@/pages/finance/priceCycleManage/priceCycle')
    },
    {
      path: '/finance/priceCycleManage/toDoList',
      name: 'priceCycleToDoList',
      meta: {
        auth: true, // 是否校验权限
        title: '价格管理周期待办列表'
      },
      component: () => import('@/pages/finance/priceCycleManage/toDoList')
    },
    {
      path: '/finance/priceCycleManage/toDoList/supplyDetail',
      name: 'todoSupplyDetail',
      meta: {
        auth: true, // 是否校验权限
        title: '价格管理周期待办列表供货明细'
      },
      component: () => import('@/pages/finance/priceCycleManage/toDoList/supplyDetail')
    },
    {
      path: '/finance/priceManage/areaMarkupRate/list',
      name: 'areaMarkupRateList',
      meta: {
        auth: true, // 是否校验权限
        title: '区域标准加价率-列表'
      },
      component: () => import('@/pages/finance/salePriceManage/areaMarkupRate')
    },
    {
      path: '/finance/priceManage/areaMarkupRate/add',
      name: 'areaMarkupRateAdd',
      meta: {
        auth: true, // 是否校验权限
        title: '区域标准加价率-新增'
      },
      component: () => import('@/pages/finance/salePriceManage/areaMarkupRate/add')
    },
    {
      path: '/finance/priceManage/areaMarkupRate/edit',
      name: 'areaMarkupRateEdit',
      meta: {
        auth: true, // 是否校验权限
        title: '区域标准加价率-编辑'
      },
      component: () => import('@/pages/finance/salePriceManage/areaMarkupRate/edit')
    },
    {
      path: '/finance/priceManage/areaMarkupRateToAudit/list',
      name: 'areaMarkupRateAddToAuditList',
      meta: {
        auth: true, // 是否校验权限
        title: '区域标准加价率待审核-列表'
      },
      component: () => import('@/pages/finance/salePriceManage/areaMarkupRateToAudit')
    },
    {
      path: '/finance/priceManage/areaMarkupRateToAudit/view',
      name: 'areaMarkupRateAddToAuditView',
      meta: {
        auth: true, // 是否校验权限
        title: '区域标准加价率待审核-单据查看'
      },
      component: () => import('@/pages/finance/salePriceManage/areaMarkupRateToAudit/view')
    },
    {
      path: '/finance/priceManage/markupRateChangeNotice/list',
      name: 'markupRateChangeNoticeList',
      meta: {
        auth: true, // 是否校验权限
        title: '指导加价率变更通知-列表'
      },
      component: () => import('@/pages/finance/salePriceManage/markupRateChangeNotice')
    },
    {
      path: '/finance/priceManage/markupRateChangeNotice/view',
      name: 'markupRateChangeNoticeView',
      meta: {
        auth: true, // 是否校验权限
        title: '指导加价率变更通知-查看'
      },
      component: () => import('@/pages/finance/salePriceManage/markupRateChangeNotice/view')
    },
    {
      path: '/finance/priceManage/markupRateChangeNotice/process',
      name: 'markupRateChangeNoticeProcess',
      meta: {
        auth: true, // 是否校验权限
        title: '指导加价率变更通知-处理'
      },
      component: () => import('@/pages/finance/salePriceManage/markupRateChangeNotice/process')
    },
    {
      path: '/finance/priceManage/clueAndLatentChangePriceRecordQuery/list',
      name: 'clueAndLatentChangePriceRecordQueryList',
      meta: {
        auth: true, // 是否校验权限
        title: '线索潜在商品售价变价记录'
      },
      component: () => import('@/pages/finance/salePriceManage/changePriceRecordQuery/clueAndLatentProduct')
    },
  ]
}
